package com.example.bookstore.common;

public class BaseContext {
    public static ThreadLocal<Integer> threadLocal=new ThreadLocal<>();

    public static void setCurrentId(Integer id){
        threadLocal.set(id);
    }
    public static int getCurrentId(){
        return threadLocal.get();
    }
}
